<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>贵州手机综合服务平台</title>
<link rel="shortcut icon" href="${contextPath}images/bitbug_favicon.ico">
<link href="${contextPath}css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${contextPath}js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="${contextPath}script/m_basic.js"></script>

<script type="text/javascript">
var isLoading = false;		// 是否在加载中
var sys_context_path = '${contextPath}';
$(function () {
	sys_load_main();
});

function sys_load_main() {
	var content = $('#layout_content');
	content.html('<div style="width:100%; text-align:center;"><img src="${contextPath}img/loading_1.gif" /> 信息加载中，请稍后...</div>');
	var url = '${contextPath}mobileMain-loadDefault.html?time=' + getTime();
	content.load(url);
}

function sys_load_handle(code) {
	if (isLoading) {
		return;
	}
	
	var content = $('#layout_content');
	content.html('<div style="width:100%; text-align:center;"><img src="${contextPath}img/loading_1.gif" /> 信息加载中，请稍后...</div>');
	
	
	isLoading = true;
	var url = create_url(code);
	$.ajax({type:'POST', url:url,
		success: function(result) {
			$('#layout_content').html(result);
				
			isLoading = false;
		},error: function(event, XMLHttpRequest, ajaxOptions, thrownError) {
			isLoading = false;
		}
	});
}
</script>
</head>

<body>
<div class="hearder">
	<div class="logo"><img src="img/logo.png" alt="贵州手机综合服务平台">贵州手机综合服务平台</div>
		<div class="sub">
		<p id="active">导航菜单</p>
		<ul id="drop">
			<#list list as mo>
			<#if ('admin@ish365.com' == cu_email) || (cu_isManager && (orgHandleMap[mo.code])??) || ((handleMap[mo.code])?? && (orgHandleMap[mo.code])??)>
			<#list mo.menuList as me>
			<#if (me.ms && (('admin@ish365.com' == cu_email) || (cu_isManager && (orgHandleMap[me.code])??) || ((handleMap[me.code])?? && (orgHandleMap[me.code])??)))>
				<#assign temp = '' /><#assign ti = 0 />
				<#if ((me.icon)?? && '' != me.icon)><#assign ti = me.icon?index_of('.png') - 1 /><#assign temp = me.icon[4..ti] /></#if>
				<li><a href="javascript:;" class="navico_${temp}" onclick="javascript:sys_load_handle('${me.code}');">${me.name}</a></li>
			</#if>
			</#list>
			</#if>
			</#list>
	   </ul>
	</div>
</div>
<div id="layout_content" class="content"></div>
<div class="footer">©2013 贵州手机联盟</div>
<script type="text/javascript" src="${contextPath}js/sub-fix.js"></script>
</body>
</html>
